﻿package cn.poco.pepsi.service;

import java.util.ArrayList;

import cn.poco.pepsi.bean.Restaurant;
import cn.poco.pepsi.bean.Topic;

public interface ITopic {
	
	public final static String BASE_TOPICS_PATH 
		= "http://img-wifi.poco.cn/mypoco/mtmpfile/MobileAPI/FoodSearch/discover_list.php?s=#s&l=10&cd=#cd";
		
	public final static String TOPICS_DETAIL_PATH 
		="http://img-m.poco.cn/mypoco/mtmpfile/food_iphone/discover_info.php?tid=#a"; 
	
	public final static String RES_TID_PATH 
		="http://img-m.poco.cn/mypoco/mtmpfile/food_iphone/discover_relate.php?tid=#a&s=#b&l=#c";
	/**
	 * @param s
	 * @param l
	 * @param lid
	 * @param dish
	 * @return
	 * 获取觅食专题列表
	 */
	public ArrayList<Topic> getTopics(String s,String l,String cd) throws Exception;
	
	/**
	 * 获取觅食专题详细信息
	 * @param tid
	 * @return
	 * @throws Exception
	 */
	//public Topic getTopic(String tid) throws Exception;
	
	/**
	 * 根据专题ID获取餐厅列表
	 * @param tid
	 * @param s
	 * @param l
	 * @return
	 * @throws Exception
	 */
	//public ArrayList<Restaurant> getResByTid(String tid,int s,int l) throws Exception;
	
}
